home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / nsIRDFRemoteDataSource.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  162 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRDFRemoteDataSource.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRDFRemoteDataSource_h__
  6. #define __gen_nsIRDFRemoteDataSource_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIRDFRemoteDataSource */
  19. #define NS_IRDFREMOTEDATASOURCE_IID_STR "1d297320-27f7-11d3-be01-000064657374"
  20.  
  21. #define NS_IRDFREMOTEDATASOURCE_IID \
  22.   {0x1d297320, 0x27f7, 0x11d3, \
  23.     { 0xbe, 0x01, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
  24.  
  25. /**
  26.  * A datasource that may load asynchronously
  27.  */
  28. class NS_NO_VTABLE nsIRDFRemoteDataSource : public nsISupports {
  29.  public: 
  30.  
  31.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFREMOTEDATASOURCE_IID)
  32.  
  33.   /**
  34.      * This value is <code>true</code> when the datasource has
  35.      * fully loaded itself.
  36.      */
  37.   /* readonly attribute boolean loaded; */
  38.   NS_IMETHOD GetLoaded(PRBool *aLoaded) = 0;
  39.  
  40.   /**
  41.      * Specify the URI for the data source: this is the prefix
  42.      * that will be used to register the data source in the
  43.      * data source registry.
  44.      * @param aURI the URI to load
  45.      */
  46.   /* void Init (in string aURI); */
  47.   NS_IMETHOD Init(const char *aURI) = 0;
  48.  
  49.   /**
  50.      * Refresh the remote datasource, re-loading its contents
  51.      * from the URI.
  52.      *
  53.      * @param aBlocking If <code>true</code>, the call will block
  54.      * until the datasource has completely reloaded.
  55.      */
  56.   /* void Refresh (in boolean aBlocking); */
  57.   NS_IMETHOD Refresh(PRBool aBlocking) = 0;
  58.  
  59.   /**
  60.      * Request that a data source write it's contents out to 
  61.      * permanent storage, if applicable.
  62.      */
  63.   /* void Flush (); */
  64.   NS_IMETHOD Flush(void) = 0;
  65.  
  66.   /* void FlushTo (in string aURI); */
  67.   NS_IMETHOD FlushTo(const char *aURI) = 0;
  68.  
  69. };
  70.  
  71. /* Use this macro when declaring classes that implement this interface. */
  72. #define NS_DECL_NSIRDFREMOTEDATASOURCE \
  73.   NS_IMETHOD GetLoaded(PRBool *aLoaded); \
  74.   NS_IMETHOD Init(const char *aURI); \
  75.   NS_IMETHOD Refresh(PRBool aBlocking); \
  76.   NS_IMETHOD Flush(void); \
  77.   NS_IMETHOD FlushTo(const char *aURI); 
  78.  
  79. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  80. #define NS_FORWARD_NSIRDFREMOTEDATASOURCE(_to) \
  81.   NS_IMETHOD GetLoaded(PRBool *aLoaded) { return _to GetLoaded(aLoaded); } \
  82.   NS_IMETHOD Init(const char *aURI) { return _to Init(aURI); } \
  83.   NS_IMETHOD Refresh(PRBool aBlocking) { return _to Refresh(aBlocking); } \
  84.   NS_IMETHOD Flush(void) { return _to Flush(); } \
  85.   NS_IMETHOD FlushTo(const char *aURI) { return _to FlushTo(aURI); } 
  86.  
  87. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  88. #define NS_FORWARD_SAFE_NSIRDFREMOTEDATASOURCE(_to) \
  89.   NS_IMETHOD GetLoaded(PRBool *aLoaded) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoaded(aLoaded); } \
  90.   NS_IMETHOD Init(const char *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aURI); } \
  91.   NS_IMETHOD Refresh(PRBool aBlocking) { return !_to ? NS_ERROR_NULL_POINTER : _to->Refresh(aBlocking); } \
  92.   NS_IMETHOD Flush(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Flush(); } \
  93.   NS_IMETHOD FlushTo(const char *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushTo(aURI); } 
  94.  
  95. #if 0
  96. /* Use the code below as a template for the implementation class for this interface. */
  97.  
  98. /* Header file */
  99. class nsRDFRemoteDataSource : public nsIRDFRemoteDataSource
  100. {
  101. public:
  102.   NS_DECL_ISUPPORTS
  103.   NS_DECL_NSIRDFREMOTEDATASOURCE
  104.  
  105.   nsRDFRemoteDataSource();
  106.  
  107. private:
  108.   ~nsRDFRemoteDataSource();
  109.  
  110. protected:
  111.   /* additional members */
  112. };
  113.  
  114. /* Implementation file */
  115. NS_IMPL_ISUPPORTS1(nsRDFRemoteDataSource, nsIRDFRemoteDataSource)
  116.  
  117. nsRDFRemoteDataSource::nsRDFRemoteDataSource()
  118. {
  119.   /* member initializers and constructor code */
  120. }
  121.  
  122. nsRDFRemoteDataSource::~nsRDFRemoteDataSource()
  123. {
  124.   /* destructor code */
  125. }
  126.  
  127. /* readonly attribute boolean loaded; */
  128. NS_IMETHODIMP nsRDFRemoteDataSource::GetLoaded(PRBool *aLoaded)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* void Init (in string aURI); */
  134. NS_IMETHODIMP nsRDFRemoteDataSource::Init(const char *aURI)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* void Refresh (in boolean aBlocking); */
  140. NS_IMETHODIMP nsRDFRemoteDataSource::Refresh(PRBool aBlocking)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* void Flush (); */
  146. NS_IMETHODIMP nsRDFRemoteDataSource::Flush()
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150.  
  151. /* void FlushTo (in string aURI); */
  152. NS_IMETHODIMP nsRDFRemoteDataSource::FlushTo(const char *aURI)
  153. {
  154.     return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156.  
  157. /* End of implementation class template. */
  158. #endif
  159.  
  160.  
  161. #endif /* __gen_nsIRDFRemoteDataSource_h__ */
  162.